package mylibrary.rmi.calculator;

import java.rmi.Naming;

public class CalculatorServer {

	public CalculatorServer() {
		
		try {
			Calculator c = new CalculatorImpl();
			
			Naming.bind("rmi://localhost:1099/CalculatorService", c);
			
		} catch (Exception e) {
			e.printStackTrace();
		}
		
	}
	
	public static void main(String[] args) {
		new CalculatorServer();
	}
}
